<template>
	<view>
		<view class="title">{{info.title}}</view>
		<view class="athu">{{info.create_name}} - {{info.createTime | dateFormat}}</view>
		<view class="content" v-html="info.content">
			
		</view>
	</view>
</template>

<script>
	import {newsdetail} from '@/common/http.api.js'
	export default {
		data() {
			return {
				info:{}
			};
		},
		onLoad(options) {
			this.getnewsdetail(options.id)
		},
		methods:{
			async getnewsdetail(id){
				const res = await newsdetail({newsID : id})
				this.info = res.data
				console.log(this.info);
			}
		}
	}
</script>

<style lang="less">
.title{
	font-size: 20px;
	font-weight: bold;
	padding: 15rpx ;
}
.athu{
	font-size: 12px;
	padding: 0 15rpx;
}
.content{
	padding: 15rpx;
}
</style>
